home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / hplip / ui4 / nodevicesdialog_base.py < prev    next >
Encoding:
Python Source  |  2009-04-14  |  6.2 KB  |  81 lines

  1. # -*- coding: utf-8 -*-
  2.  
  3. # Form implementation generated from reading ui file 'ui4/nodevicesdialog_base.ui'
  4. #
  5. # Created: Tue Feb 17 11:36:13 2009
  6. #      by: PyQt4 UI code generator 4.3.3
  7. #
  8. # WARNING! All changes made in this file will be lost!
  9.  
  10. from PyQt4 import QtCore, QtGui
  11.  
  12. class Ui_NoDevicesDialog_base(object):
  13.     def setupUi(self, NoDevicesDialog_base):
  14.         NoDevicesDialog_base.setObjectName("NoDevicesDialog_base")
  15.         NoDevicesDialog_base.resize(QtCore.QSize(QtCore.QRect(0,0,539,335).size()).expandedTo(NoDevicesDialog_base.minimumSizeHint()))
  16.  
  17.         self.gridlayout = QtGui.QGridLayout(NoDevicesDialog_base)
  18.         self.gridlayout.setObjectName("gridlayout")
  19.  
  20.         self.Icon = QtGui.QLabel(NoDevicesDialog_base)
  21.  
  22.         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,QtGui.QSizePolicy.Fixed)
  23.         sizePolicy.setHorizontalStretch(0)
  24.         sizePolicy.setVerticalStretch(0)
  25.         sizePolicy.setHeightForWidth(self.Icon.sizePolicy().hasHeightForWidth())
  26.         self.Icon.setSizePolicy(sizePolicy)
  27.         self.Icon.setFrameShape(QtGui.QFrame.NoFrame)
  28.         self.Icon.setScaledContents(True)
  29.         self.Icon.setWordWrap(False)
  30.         self.Icon.setObjectName("Icon")
  31.         self.gridlayout.addWidget(self.Icon,0,0,1,1)
  32.  
  33.         spacerItem = QtGui.QSpacerItem(20,280,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
  34.         self.gridlayout.addItem(spacerItem,1,0,1,1)
  35.  
  36.         spacerItem1 = QtGui.QSpacerItem(20,16,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
  37.         self.gridlayout.addItem(spacerItem1,2,2,1,1)
  38.  
  39.         self.textLabel7 = QtGui.QLabel(NoDevicesDialog_base)
  40.         self.textLabel7.setAlignment(QtCore.Qt.AlignVCenter)
  41.         self.textLabel7.setWordWrap(True)
  42.         self.textLabel7.setObjectName("textLabel7")
  43.         self.gridlayout.addWidget(self.textLabel7,0,1,2,4)
  44.  
  45.         spacerItem2 = QtGui.QSpacerItem(400,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
  46.         self.gridlayout.addItem(spacerItem2,3,0,1,2)
  47.  
  48.         self.SetupButton = QtGui.QPushButton(NoDevicesDialog_base)
  49.         self.SetupButton.setObjectName("SetupButton")
  50.         self.gridlayout.addWidget(self.SetupButton,3,2,1,1)
  51.  
  52.         self.CUPSButton = QtGui.QPushButton(NoDevicesDialog_base)
  53.         self.CUPSButton.setObjectName("CUPSButton")
  54.         self.gridlayout.addWidget(self.CUPSButton,3,3,1,1)
  55.  
  56.         self.CloseButton = QtGui.QPushButton(NoDevicesDialog_base)
  57.         self.CloseButton.setDefault(True)
  58.         self.CloseButton.setObjectName("CloseButton")
  59.         self.gridlayout.addWidget(self.CloseButton,3,4,1,1)
  60.  
  61.         self.retranslateUi(NoDevicesDialog_base)
  62.         QtCore.QMetaObject.connectSlotsByName(NoDevicesDialog_base)
  63.  
  64.     def retranslateUi(self, NoDevicesDialog_base):
  65.         NoDevicesDialog_base.setWindowTitle(QtGui.QApplication.translate("NoDevicesDialog_base", "HP Device Manager - No Installed HP Devices Found", None, QtGui.QApplication.UnicodeUTF8))
  66.         self.textLabel7.setText(QtGui.QApplication.translate("NoDevicesDialog_base", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
  67.         "p, li { white-space: pre-wrap; }\n"
  68.         "</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
  69.         "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:x-large; font-weight:600;\">No Installed HP Devices Found.</span></p>\n"
  70.         "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">To setup a new device in the HP Device Manager (toolbox), use one of the following methods:</p>\n"
  71.         "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">1.Run <span style=\" font-weight:600;\">hp-setup</span> (in a shell/terminal or click <span style=\" font-family:\'Courier New,courier\';\">Setup Device...</span> below).</p>\n"
  72.         "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">2. <span style=\" font-weight:600;\">CUPS web interface</span> (open a browser to: <span style=\" text-decoration: underline;\">http://localhost:631</span> or press the button below),</p>\n"
  73.         "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">3. The <span style=\" font-weight:600;\">printer installation utility</span> that came with your operating system (YaST, PrinterDrake, etc). </p>\n"
  74.         "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">After setting up a printer, you may have to press <span style=\" font-family:\'Courier New,courier\';\">F6</span> or chose <span style=\" font-family:\'Courier New,courier\';\">Device | Refresh All</span> for the printer to appear in the HP Device Manager.</p>\n"
  75.         "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600; font-style:italic;\">Note: Only devices installed with the </span><span style=\" font-family:\'Courier New,courier\'; font-weight:600; font-style:italic;\">hp:</span><span style=\" font-weight:600; font-style:italic;\"> or </span><span style=\" font-family:\'Courier New,courier\'; font-weight:600; font-style:italic;\">hpfax:</span><span style=\" font-weight:600; font-style:italic;\"> CUPS backend will appear in the HP Device Manager.</span></p>\n"
  76.         "<p style=\"-qt-paragraph-type:empty; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
  77.         self.SetupButton.setText(QtGui.QApplication.translate("NoDevicesDialog_base", "Setup Device...", None, QtGui.QApplication.UnicodeUTF8))
  78.         self.CUPSButton.setText(QtGui.QApplication.translate("NoDevicesDialog_base", "CUPS Web Interface", None, QtGui.QApplication.UnicodeUTF8))
  79.         self.CloseButton.setText(QtGui.QApplication.translate("NoDevicesDialog_base", "Close", None, QtGui.QApplication.UnicodeUTF8))
  80.  
  81.